package com.ybc.chinese.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.ybc.chinese.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * <p>设置<p/>
 * Created by Yubch on 17/2/15.
 */
public class SettingActivity extends BaseActivity {

    @Bind(R.id.iv_left)
    ImageView ivLeft;
    @Bind(R.id.tv_title)
    TextView tvTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set);
        ButterKnife.bind(this);
        tvTitle.setText("设置");
        ivLeft.setImageResource(R.mipmap.ic_back);
        ivLeft.setVisibility(View.VISIBLE);
    }

    @OnClick(R.id.iv_left)
    public void left() {
        finish();
    }

    @OnClick(R.id.layout_feedback)
    public void feedback() {
        Intent intent = new Intent(this, FeedBackActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.layout_about)
    public void about() {
        Intent intent = new Intent(this, AboutActivity.class);
        startActivity(intent);
    }
}
